Skip to content

BytesHandle: return -1 on EOF#341

Merged
ctrueden merged 1 commit intomasterfrom
bytesHandle-EOF
Oct 16, 2018
Merged

BytesHandle: return -1 on EOF#341
ctrueden merged 1 commit intomasterfrom
bytesHandle-EOF

Conversation

@gab1one
Copy link
Contributor

@gab1one gab1one commented Oct 16, 2018

BytesHandle did not return -1 when when at the end of the stream, this is not expected behavior and additionally broke the compatibility of BytesHandle with other stream reading APIs (e.g. when wrapped in a DataHandleInputStream).

@ctrueden ctrueden merged commit 6f337e8 into master Oct 16, 2018
@ctrueden ctrueden deleted the bytesHandle-EOF branch October 16, 2018 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants